﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/MasterPage.master" CodeFile="ListaClientes.aspx.cs" Inherits="Informes_ListaClientes" %>
<asp:Content ID="Content1"  ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center; vertical-align: text-top;">
        <asp:ScriptManager id="ScriptManager1" runat="server">
        </asp:ScriptManager>
     
<table class="tablaForm" style=" width: 100%; text-align:left">
    <tr>
        <td colspan="4" class="tdInfo" align="right">
            Lista Clientes</td>
    </tr>
    <tr>
        <td align="left" class="tdForm" colspan="4" style="text-align: center">
            <asp:Label id="lblAccion" runat="server" Text="lblAccion" CssClass="lblAccion"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="left" class="tdForm" colspan="4" style="text-align: center">
            <asp:RadioButton ID="rdbLista" runat="server" Checked="True" Text="Por Estado" ValidationGroup="vgTipo"  AutoPostBack="true" CausesValidation="True" OnCheckedChanged="rdbLista_CheckedChanged" />&nbsp;&nbsp;
            &nbsp; &nbsp; &nbsp;<asp:RadioButton ID="rdbCumple" runat="server" Text="Cumpleaños" ValidationGroup="vgTipo" AutoPostBack="true" CausesValidation="True" OnCheckedChanged="rdbCumple_CheckedChanged" />
        </td>
    </tr>
    <tr id="trEstado" runat="server">
        <td class="tdLiteral" colspan="2" style="text-align: right; width: 50%">
            <asp:Label ID="lblEstado" runat="server" CssClass="label" Text="Estado:"></asp:Label></td>
        <td class="tdForm" colspan="2" style="text-align: left; width: 50%">
            <asp:DropDownList ID="cboEstado" runat="server" CssClass="combo" Width="100px">
                <asp:ListItem Value="0">Todos</asp:ListItem>
                <asp:ListItem Value="1">Activos</asp:ListItem>
                <asp:ListItem Value="2">Suspendidos</asp:ListItem>
                <asp:ListItem Value="3">De Baja</asp:ListItem>
                <asp:ListItem Value="4">En Evaluaci&#243;n</asp:ListItem>
            </asp:DropDownList></td>
    </tr>
    <tr id="trCumple" runat="server">
        <td class="tdLiteral" colspan="2" style="text-align: right">
            <asp:Label ID="Label1" runat="server" CssClass="label" Text="Mes Cumpleaños: "></asp:Label></td>
        <td class="tdForm" colspan="2" style="text-align: left">
            <asp:DropDownList ID="cboMes" runat="server" Width="150px">
            </asp:DropDownList></td>
    </tr>
    <tr>
        <td style="WIDTH: 100%" colspan="4">
            <asp:GridView id="gvClientes" runat="server" BorderWidth="1px" BackColor="White" Width="100%" 
                OnPageIndexChanging="gvClientes_PageIndexChanging" 
                CellPadding="3" AllowPaging="True" AutoGenerateColumns="False" 
                DataKeyNames="Id_Cliente" BorderColor="#999999" BorderStyle="None" 
                GridLines="Vertical" EmptyDataText="No hay datos a mostrar">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black"></FooterStyle>
                <columns>
                    <asp:TemplateField HeaderText="N&#250;mero">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Id_Clientes" runat="server" Text='<%# Bind("Id_Cliente") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                     <asp:TemplateField HeaderText="Nombre">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Nombre" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                       <asp:TemplateField HeaderText="Domicilio">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Domicilio" runat="server" Text='<%# Bind("Direccion") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                      <asp:TemplateField HeaderText="Localidad">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Localidad" runat="server" Text='<%# Bind("Localidad") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                     <asp:TemplateField HeaderText="Fecha">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Fecha" runat="server" Text='<%# Bind("FechaEstado", "{0:dd/MM/yyyy}") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                     <asp:TemplateField HeaderText="Cta. Cte.">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Saldo" runat="server" Text='<%# Bind("Saldo", "{0:F2}") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                     <asp:TemplateField HeaderText="Telefono">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Telefono" runat="server" Text='<%# Bind("Te1") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="Mes Cumple">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="MesCumple" runat="server" Text='<%# Bind("MesNac") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="Dia Cumple">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="DiaCumple" runat="server" Text='<%# Bind("DiaNac") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                </columns>
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center"></RowStyle>
                <EditRowStyle Wrap="True"></EditRowStyle>
                <SelectedRowStyle BackColor="#008A8C" ForeColor="White" Font-Bold="True"></SelectedRowStyle>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center"></PagerStyle>
                <HeaderStyle BackColor="#325FB9" ForeColor="White" Font-Names="Arial Rounded MT Bold" Font-Bold="True"></HeaderStyle>
                <AlternatingRowStyle BackColor="Gainsboro"></AlternatingRowStyle>
            </asp:GridView>
            </td>
            </tr>
        </table><br /><br />
    <table class="tdForm">
      <tr>
            <td class="tdLiteral" colspan="2" style="width:30%; text-align: right">
                <asp:Label ID="lblcantilb" runat="server" Font-Bold="True">Total Clientes: </asp:Label></td>
            <td class="tdForm" colspan="2" style="width:30%; text-align: left">
                <asp:Label ID="lblCantidad" runat="server" Font-Bold="True"></asp:Label></td>
      </tr>
    </table><br />
    <table class="tdForm">
        <tr>
            <td style="width: 100%" class="tdBotones">
                <asp:Button ID="btnCancelar" runat="server" OnClick="btnCancelar_Click" Text="Cancelar" Width="70px" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnVer" runat="server" OnClick="btnVer_Click" Text="Ver" Width="70px" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnInforme" runat="server" OnClick="btnInforme_Clic" Text="Informe" Width="70px" />
            </td>
        </tr>
    </table>
    </div>
</asp:Content>
